package com.dces.jx.billtest.api.copGNoAndEmsNo;
import com.dces.jx.billtest.common.service.ExcelService;
import com.dces.jx.billtest.common.model.PCodeType;
import com.dces.jx.billtest.dto.copGNoAndEmsNo.EmsCusExgCurDto;
import com.dces.jx.billtest.dto.copGNoAndEmsNo.EmsCusExgCurParam;
import com.dces.jx.billtest.dto.copGNoAndEmsNo.EmsCusExgCurExportParam;
import com.dces.jx.billtest.copGNoAndEmsNo.service.EmsCusExgCurService;
import com.xdo.pcode.service.PCodeHolder;
import com.xdo.domain.PageParam;
import com.xdo.domain.ResultObject;
import com.xdo.common.token.UserInfoToken;
import com.xdo.springboot.BaseController;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.validation.Valid;
import java.net.URLEncoder;
import java.util.List;
/**
 * generated by Generate dc
 * 
 *
 * @author xdoV2.0
 * @date: 2021-9-15
 */
@RestController
@RequestMapping("v1/emsCusExgCur")
@Api(tags = "接口")
public class EmsCusExgCurController extends BaseController {
    @Resource
    private EmsCusExgCurService emsCusExgCurService;
    @Resource
    private PCodeHolder pCodeHolder;
    @Resource
    private ExcelService excelService;
    /**
     * @param emsCusExgCurParam
     * @param pageParam
     * @param userInfo
     * @return
     */
    @ApiOperation("分页查询接口")
    @PostMapping("list/{gMark}")
    public ResultObject<List<EmsCusExgCurDto>> getListPaged(
            @RequestBody EmsCusExgCurParam emsCusExgCurParam,
            PageParam pageParam, UserInfoToken userInfo,
            @PathVariable("gMark") String gMark
    ) {
        ResultObject<List<EmsCusExgCurDto>> paged = emsCusExgCurService.getListPaged(emsCusExgCurParam, pageParam,gMark);
        return paged;
    }
    // TODO patch api
}
